var robot = require("robotjs");

//Mouse down at 10, 10 and then drag to 100, 100 and release.
robot.moveMouse(10, 60);
robot.mouseToggle("down");

// 并不一定用 dragMouse, toggle down状态下, mouseMove也可以
robot.dragMouse(300, 60);
// robot.moveMouse(300, 60);
// robot.moveMouseSmooth(300, 60);


robot.mouseToggle("up");

